using System;

namespace Welcome
{
	/// <summary>
	/// Summary description for Unary.
	/// </summary>
	public class Unary
	{
		public Unary()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public static void Main()
		{
			int unary = 0;
			int preIncrement;
			int preDecrement;
			int postIncrement;
			int postDecrement;
			int positive;
			int negative;
			sbyte bitNot;
			bool logNot;

			preIncrement = ++unary;
			Console.WriteLine("preIncrement: {0}",preIncrement);

			preDecrement = --unary;
			Console.WriteLine("preDecrement: {0}",preDecrement);
			
			postDecrement = unary--;
			Console.WriteLine("postDecrement: {0}",postDecrement);

			postIncrement = unary++;
			Console.WriteLine("postIncrement: {0}",postIncrement);			
			
			Console.WriteLine("Final value of unary: {0}", unary);

			positive = -postIncrement;
			Console.WriteLine("positive: {0}", positive);

			negative = +postIncrement;
			Console.WriteLine("negative: {0}", negative);

			bitNot = 0;
			bitNot = (sbyte)(~bitNot);
			Console.WriteLine("bitNot: {0}", bitNot);

			logNot = false;
			logNot = !logNot;
			Console.WriteLine("logNot: {0}", logNot);
			
			Console.ReadLine();


		}

	}
}
